package task

import (
	"frame/logger/HLogger"
	"task/TaskModule"
	"strconv"
)

var logger = HLogger.GetHLogger("task.init")

func init(){
	result,err := TaskModule.RegisterTask(SimpleTaskDemo)
	if(result == false) {
		logger.Error("Task注册失败["+err.Error()+"]")
		panic(err)
	}
	logger.Info("初始化成功"+strconv.Itoa(TaskModule.GetTaskModulesCount())+"个Task")
}
